import request from "superagent";
import {
    serverPath,
    json
} from "../../common/config.js";
import {
    prepareRequest,
    serviceInterceptor
} from "../../common/utils";

class RoleService {
    /**
  * @constructor
  */
    constructor() {

    }
    @serviceInterceptor()
    async queryRole() {
        let req = request.get(`${serverPath}roles`)
            .accept(json);

        return await prepareRequest(req);
    }
}
export default RoleService;